<template>
  <el-dialog :title="`${type==2?'编辑':'新建'}银行账户`" :visible.sync="dialogFormVisible">
    <el-form :model="form" label-width="120px" label-position="right">
      <el-row :gutter="10">
        <el-col :span="12">
          <el-form-item label="银行类型名称">
            <el-select v-model="form.type" placeholder="请选择银行类型名称" style="width: 90%">
              <el-option v-for="dict in dict.type.nc_purchasesale_type" :label="dict.label" :value="dict.value" :key="dict.value"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
       <el-col :span="12">
         <el-form-item label="NC编码">
           <el-input style="width: 90%" v-model="form.name" placeholder="选择银行类型名称后自动带出" disabled></el-input>
         </el-form-item>
       </el-col>
        <el-col :span="12">
          <el-form-item label="NCid">
            <el-input style="width: 90%" v-model="form.name" placeholder="选择银行类型名称后自动带出" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="银行类别id">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入银行类别id" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="银行id">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入银行id" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="银行编码">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入银行编码" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="银行名称">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入银行名称" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="银行简称">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入银行简称" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="联行号">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入联行号" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="人行联行号">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入人行联行号" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="人行联行名称">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入人行联行名称" maxlength="30"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="SWIFT码">
            <el-input style="width: 90%" v-model="form.name" placeholder="请输入SWIFT码" maxlength="30"></el-input>
          </el-form-item>
        </el-col>

      </el-row>

    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取 消</el-button>
      <el-button type="primary" @click="saveForm">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  components: {},
  dicts:['nc_purchasesale_type'],
  props: {},
  data() {
    return {
      dialogFormVisible:false,
      type:1,
      deptOptions:[],
      form:{
        name:null,
        parentId:null,
        type:null,
        status:1
      }
    }
  },
  computed: {},
  methods: {
    show(type){
      this.type=type;
      this.dialogFormVisible=true
    },
    saveForm(){
      this.dialogFormVisible=false
    }
  },
  mounted() {

  },

}
</script>

<style lang="scss" scoped>
</style>